package com.example.rpcserver.service;

import com.example.rpccommon.annotation.RpcService;
import com.example.rpccommon.entity.UserInfo;
import com.example.rpccommon.service.UserService;
import org.springframework.util.StringUtils;

@RpcService(UserService.class)
public class UserServiceImpl implements UserService {
    @Override
    public String getAccessToken(String appId) {
        return "DADFADFDFDASDSDSDSDADAD";
    }

    @Override
    public UserInfo getUserInfo(String tokenCode) {
        UserInfo userInfo=new UserInfo();
        if(StringUtils.isEmpty(tokenCode)){
            return userInfo;
        }
        userInfo.setAccountName("fzj读你");
        userInfo.setPassword("123456");
        return userInfo;
    }
}
